package com.zjmzxfzhl.modules.purchase.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zjmzxfzhl.modules.purchase.controller.vo.ProjectStatVo;
import com.zjmzxfzhl.modules.purchase.controller.vo.PurchaseProjectVo;
import com.zjmzxfzhl.modules.purchase.entity.PurchaseProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper
 *
 * @author 庄金明
 */
public interface PurchaseProjectMapper extends BaseMapper<PurchaseProject> {
    /**
     * 查询列表
     *
     * @param page
     * @param entity
     * @return
     */
    List<PurchaseProjectVo> list(IPage<PurchaseProjectVo> page, @Param("entity") PurchaseProject entity);

    /**
     * 统计项目金额
     * @param startDate
     * @param endDate
     * @return
     */
    List<ProjectStatVo> statProject(@Param("startDate") String startDate,
                                    @Param("endDate") String endDate);
}
